package com.chance.cc.crawler.development.command.schedule.kaoyan;

import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/11 16:57
 * @Description
 *      考研论坛
 **/
public class KaoyanCrawlerJobSchedule {


    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);


    public static void main(String[] args) {
        republishCrawlerJobInfo("kaoyan-post-realtime-cron");
        republishCrawlerJobInfo("kaoyan-reply-realtime-cron");
    }

    public static void republishCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.republishCrawlerJob(triggerKey,"crawler_dev_host");
    }


    public static void deleteCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,"crawler_dev_host");
    }

}
